import request from '@/utils/request'

// 查询运动会具体项目列表
export function listSportlist(query) {
  return request({
    url: '/sportlists/sportlist/list',
    method: 'get',
    params: query
  })
}

// 查询运动会具体项目详细
export function getSportlist(sportlistId) {
  return request({
    url: '/sportlists/sportlist/' + sportlistId,
    method: 'get'
  })
}

// 新增运动会具体项目
export function addSportlist(data) {
  return request({
    url: '/sportlists/sportlist',
    method: 'post',
    data: data
  })
}

//获取裁判组信息
export function getSportFeress() {
  return request({
    url: '/sportlists/sportlist/getSportFeress',
    method: 'post',
  })
}



// 修改运动会具体项目
export function updateSportlist(data) {
  return request({
    url: '/sportlists/sportlist',
    method: 'put',
    data: data
  })
}

// 删除运动会具体项目
export function delSportlist(sportlistId) {
  return request({
    url: '/sportlists/sportlist/' + sportlistId,
    method: 'delete'
  })
}
